﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Candy.Web.Data
{
    public class DatabaseDto
    {
        [Key]
        [Editable(false)]
        public int Id { get; set; }

        [Editable(false)]
        public Guid UId { get; set; }

        [Required]
        [Editable(false)]
        public string Name { get; set; }

        [Editable(false)]
        public string Version { get; set; }

        [Required]
        public bool IsEnabled { get; set; }

        [Required]
        [Editable(false)]
        public bool IsFishingDB { get; set; }

        [Required]
        [Editable(false)]
        public bool IsSecondaryDB { get; set; }

        [Editable(false)]
        public string LocalDBName { get; set; }


        [Editable(false)]
        public string DisplayName { get; set; }



        [Editable(false)]
        public string Collection { get; set; }


        [Required]
        [Editable(false)]
        public int ProjectId { get; set; }
    }
}